package com.zhijian.medical.service;


import com.zhijian.medical.entity.po.DeviceArchivesFile;
import com.zhijian.medical.entity.vo.request.DeviceArchivesFileSearchVo;
import com.zhijian.medical.entity.vo.response.DeviceArchivesFileVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 档案文件 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-01-01 15:38:53
 */
public interface DeviceArchivesFileService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    DeviceArchivesFile selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    DeviceArchivesFileVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param deviceArchivesFile
     * @return
     */
    Long insert(DeviceArchivesFile deviceArchivesFile);

    /**
     * 更改
     *
     * @param deviceArchivesFile
     * @return
     */
    boolean update(DeviceArchivesFile deviceArchivesFile);

    /**
     * 总数
     *
     * @param deviceArchivesFileSearchVo
     * @return
     */
    Integer count(DeviceArchivesFileSearchVo deviceArchivesFileSearchVo);

    /**
     * 列表
     *
     * @param deviceArchivesFileSearchVo
     * @return
     */
    List<DeviceArchivesFileVo> selectList(DeviceArchivesFileSearchVo deviceArchivesFileSearchVo);

    /**
     * 分页展示
     *
     * @param deviceArchivesFileSearchVo
     * @return
     */
    Page<DeviceArchivesFileVo> selectPage(DeviceArchivesFileSearchVo deviceArchivesFileSearchVo);
}